﻿namespace Beetle
{
    using System;
    using System.Runtime.CompilerServices;

    public class ObjectArraySegment<T>
    {
        [CompilerGenerated]
        private T[] _field_a;
        [CompilerGenerated]
        private int _field_b;
        [CompilerGenerated]
        private int _field_c;

        public ObjectArraySegment()
        {
        }

        public ObjectArraySegment(int count)
        {
            this.Array=(new T[count]);
        }

        public void SetArray(int offset, int count)
        {
            this.Offset=(offset);
            this.Count=(count);
        }

        public void SetArray(T[] data, int offset, int count)
        {
            this.Array =(data);
            this.Offset =(offset);
            this.Count =(count);
        }

        public T[] Array
        {
            [CompilerGenerated]
            get
            {
                return this._field_a;
            }
            [CompilerGenerated]
            internal set
            {
                this._field_a = value;
            }
        }

        public int Count
        {
            [CompilerGenerated]
            get
            {
                return this._field_c;
            }
            [CompilerGenerated]
            internal set
            {
                this._field_c = value;
            }
        }

        public int Offset
        {
            [CompilerGenerated]
            get
            {
                return this._field_b;
            }
            [CompilerGenerated]
            internal set
            {
                this._field_b = value;
            }
        }
    }
}

